package com.LearnInWorld.user.pojo;

/*
用户实体类


*/

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "tb_user")
public class User {

    //用户ID
    private String id;
    //用户名
    @Id
    private String username;
    //密码，加密存储
    private String password;
    //注册手机号
    private String phone;
    //注册邮箱
    private String email;
    //创建时间
    private Date created;
    //修改时间
    private Date updated;
    //会员来源：1:PC，2：H5，3：Android，4：IOS
    @Column(name = "source_type")
    private String sourceType;
    //昵称
    @Column(name = "nick_name")
    private String nickName;
    //真实姓名
    private String name;
    //使用状态（1正常 0非正常）
    private String status;
    //头像地址
    @Column(name = "head_pic")
    private String headPic;
    //QQ号码
    private String qq;
    //手机是否验证 （0否  1是）
    @Column(name = "is_mobile_check")
    private String isMobileCheck;
    //邮箱是否检测（0否  1是）
    @Column(name = "is_email_check")
    private String isEmailCheck;
    //性别，1男，0女
    private String sex;
    //会员等级
    @Column(name = "user_level")
    private Long userLevel;
    //积分
    private Long points;
    //经验值
    @Column(name = "experience_value")
    private Long experienceValue;
    //出生年月日
    private Date birthday;
    //最后登录时间
    @Column(name = "last_login_time")
    private Date lastLoginTime;
    //评论ID
    @Column(name = "comments_id")
    private Long commentsId;

}
